package com.wen.hello.service;

import com.wen.hello.service.histrix.HelloServiceHistrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: Gentle
 * @Date: 2019/2/17 13:03
 * @Description:
 */
@FeignClient(value = "spring-cloud-service-admin",fallback = HelloServiceHistrix.class)
public interface HelloFeignService {

    @RequestMapping(value = "hi", method = RequestMethod.GET)
     String sayHi(@RequestParam(value = "message") String message);
}
